#include "Engine/AuxTypesDX9.h"
#include "DrawInterfaceDX9.h"

mVoid CDrawInterfaceDX9::Draw( mUInt a_uVertexCount, mUInt a_uStartVertex )
{
    //Vertex count to primitive count    
    g_D3DDevice.pD3D9Device->DrawPrimitive(DX9PrimitiveType(m_Type),
        a_uStartVertex, 
        DX9VertexCountToPrimitiveCount(m_Type, a_uVertexCount) );
}

mVoid CDrawInterfaceDX9::DrawIndexed( mUInt a_uIndexCount, mUInt a_uStartIndex, mUInt a_uVertexCount, mUInt a_uStartVertex )
{
    //Vertex count to primitive count    
    g_D3DDevice.pD3D9Device->DrawIndexedPrimitive(DX9PrimitiveType(m_Type),
        a_uStartVertex, 0, 
        a_uVertexCount, a_uStartIndex,  
        DX9VertexCountToPrimitiveCount(m_Type, a_uIndexCount) );
}